package com.ybkj.chat.module.friend_center.activity;

import android.view.View;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.manager.ActivityManager;
import com.ybkj.chat.ui.dialog.TipDialog;
import com.ybkj.chat.utils.ResourcesUtil;

import butterknife.OnClick;

/**
 * 粉丝更多
 */
public class FansMoreActivity extends BaseMvpActivity {

    private TipDialog tipDialog;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText(ResourcesUtil.getString(R.string.more));
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_fans_more;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    /**
     * 点击事件监听
     *
     * @param view
     */
    @OnClick({R.id.remarks_name, R.id.switch1, R.id.pull_black_tv, R.id.cancel_fans})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            //设置备注名称
            case R.id.remarks_name:
                ActivityManager.gotoActivity(mContext, MemoNameActivity.class);
                break;
            //不看她的动态
            case R.id.switch1:
                break;
            //拉黑
            case R.id.pull_black_tv:
                tipDialog = new TipDialog(mContext);
                tipDialog.setMessageText("提示");
                tipDialog.setContentText("拉黑后将不会接受到对方的消息 可在黑名单中解除，是否拉黑？");
                tipDialog.show();

                break;
            //移除粉丝
            case R.id.cancel_fans:
                    tipDialog = new TipDialog(mContext);
                    tipDialog.setMessageText("移除粉丝");
                    tipDialog.setContentText("确定将她移除你的粉丝列表");
                    tipDialog.show();

                break;
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        if (tipDialog != null) {
            tipDialog.cancel();
        }

    }
}
